package com.example.tests;

import org.junit.*;
import static org.junit.Assert.*;

import com.example.pages.MyProfilePage;

public class ChangeEmailTest extends TestBase{
	
	@Test
	public void testEmailChange() throws Exception {
		MyProfilePage myProfilePage = goToMainPage()
			.loginWithValidCredentials("admin", "admin")
			.gotoMyProfilePage()
			.changeEmailTo("admin@admin.ru")
			.gotoMyProfilePage();
		assertFalse("Email don't change",myProfilePage.isEmailNew("admin@admin.ru"));
		myProfilePage.logout();
		
	}

}
